using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN CategoriesServiceBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:28/09/2010 53:02:24</para>
	/// <para>Class Name: CategoriesServiceBase</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class CategoriesService : ICategoriesService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: Category_ID</para>
		/// <para>Output: CategoriesEntity</para>
		///</summary>
		public CategoriesEntity SelectOne(int Category_ID){
			CategoriesDAO dao = new CategoriesDAO();
			return dao.SelectOne(Category_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of CategoriesEntity</para>
		///</summary>
		public List<CategoriesEntity> SelectAll(){
			CategoriesDAO dao = new CategoriesDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			CategoriesDAO dao = new CategoriesDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of CategoriesEntity</para>
		///</summary>
		public List<CategoriesEntity> SelectAllFilter(string strFilter){
			CategoriesDAO dao = new CategoriesDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			CategoriesDAO dao = new CategoriesDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: Save</para>
		/// <para>Input: CategoriesEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(CategoriesEntity o){
			CategoriesDAO dao = new CategoriesDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: Save</para>
		/// <para>Input: CategoriesEntity</para>
		/// <para>Output: CategoriesEntity</para>
		///</summary>
		public CategoriesEntity SaveRet(CategoriesEntity o){
			CategoriesDAO dao = new CategoriesDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of CategoriesEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<CategoriesEntity> list){
			CategoriesDAO dao = new CategoriesDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of CategoriesEntity</para>
		/// <para>Output: List of CategoriesEntity</para>
		///</summary>
		public List<CategoriesEntity> SaveListRet(List<CategoriesEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: Update</para>
		/// <para>Input: CategoriesEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(CategoriesEntity o){
			CategoriesDAO dao = new CategoriesDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of CategoriesEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<CategoriesEntity> list){
			CategoriesDAO dao = new CategoriesDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: UpdateCategoryName</para>
		/// <para>Input: NewCategoryName,Category_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateCategoryName(string NewCategoryName,int Category_ID){
			CategoriesDAO dao = new CategoriesDAO();
			return dao.UpdateCategoryName(NewCategoryName,Category_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: UpdateCategoryDescription</para>
		/// <para>Input: NewCategoryDescription,Category_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateCategoryDescription(string NewCategoryDescription,int Category_ID){
			CategoriesDAO dao = new CategoriesDAO();
			return dao.UpdateCategoryDescription(NewCategoryDescription,Category_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: UpdateCategoryParent_ID</para>
		/// <para>Input: NewCategoryParent_ID,Category_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateCategoryParent_ID(int NewCategoryParent_ID,int Category_ID){
			CategoriesDAO dao = new CategoriesDAO();
			return dao.UpdateCategoryParent_ID(NewCategoryParent_ID,Category_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: UpdateCateIndex</para>
		/// <para>Input: NewCateIndex,Category_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateCateIndex(int NewCateIndex,int Category_ID){
			CategoriesDAO dao = new CategoriesDAO();
			return dao.UpdateCateIndex(NewCateIndex,Category_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: UpdateIsHomePage</para>
		/// <para>Input: NewIsHomePage,Category_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateIsHomePage(bool NewIsHomePage,int Category_ID){
			CategoriesDAO dao = new CategoriesDAO();
			return dao.UpdateIsHomePage(NewIsHomePage,Category_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: UpdateDisplay</para>
		/// <para>Input: NewDisplay,Category_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateDisplay(bool NewDisplay,int Category_ID){
			CategoriesDAO dao = new CategoriesDAO();
			return dao.UpdateDisplay(NewDisplay,Category_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: Delete</para>
		/// <para>Input: CategoriesEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(CategoriesEntity o){
			CategoriesDAO dao = new CategoriesDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:28/09/2010 53:02:24</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: Category_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int Category_ID){
			CategoriesDAO dao = new CategoriesDAO();
			return dao.DeleteByID(Category_ID);
		}
		#endregion

		#region Select,delete by Category_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END CategoriesWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

